import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router';

const routes: Array<RouteRecordRaw> = [
	// {
	// 	path: '/',
	// 	component: () => import('@/views/layout/index.vue'),
	// },
	{
		path: '/',
		component: () => import('@/views/layout/index.vue'),
		children: [
			{
				path: '/',
				component: () => import('@/views/home/index.vue'),
			},
			{
				path: '/1.0',
				component: () => import('@/views/write/index.vue'),
			},
			{
				path: '/1.1',
				component: () => import('@/views/write/index.vue'),
			},
		]
	},
];

const route = createRouter({
	history: createWebHashHistory(),
	routes,
});

export default route;
